package com.gaeig.base;

import javax.jdo.annotations.Transactional;

import com.google.inject.Binder;
import com.google.inject.Module;
import com.google.inject.matcher.Matchers;

public abstract class GaeigModule implements Module {

  public void configure(Binder binder) {
    binder.bindInterceptor(Matchers.any(), Matchers.annotatedWith(Transactional.class), new JDOTransactionInterceptor());
    configureGuice(binder);
  }

  public abstract void configureGuice(Binder binder);

}
